

<%@ page import="com.consorzioimpresa.resuite.domain.ContattoOpzioni"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="springSecurityUI" />
<g:set var="entityName"
	value="${message(code: 'contattoOpzioni.label', default: 'ContattoOpzioni')}" />
<title>Crea Opzioni Contatti</title>
</head>
<body>
	<div class="nav">
		<span class="menuButton"><g:link class="list" action="list">
				Lista Opzioni Contatti
			</g:link></span>
	</div>
	</div>
	<div class="body">
		<h1>
			<g:message code="default.create.label" args="[entityName]" />
		</h1>
		<g:if test="${flash.message}">
			<div class="message">
				${flash.message}
			</div>
		</g:if>
		<g:hasErrors bean="${contattoOpzioniInstance}">
			<div class="errors">
				<g:renderErrors bean="${contattoOpzioniInstance}" as="list" />
			</div>
		</g:hasErrors>
		<g:form action="save" enctype="multipart/form-data">
			<div class="dialog">
				<table>
					<tbody>

						<tr class="prop">
							<td valign="top" class="name"><label for="cap"><g:message
										code="contattoOpzioni.cap.label" default="Cap" /></label></td>
							<td valign="top"
								class="value ${hasErrors(bean: contattoOpzioniInstance, field: 'cap', 'errors')}">
								<g:textField name="cap" value="${contattoOpzioniInstance?.cap}" />
							</td>
						</tr>

						<tr class="prop">
							<td valign="top" class="name"><label for="localita"><g:message
										code="contattoOpzioni.localita.label" default="Localita" /></label></td>
							<td valign="top"
								class="value ${hasErrors(bean: contattoOpzioniInstance, field: 'localita', 'errors')}">
								<g:textField name="localita"
									value="${contattoOpzioniInstance?.localita}" />
							</td>
						</tr>

						<tr class="prop">
							<td valign="top" class="name"><label for="prezzoDa"><g:message
										code="contattoOpzioni.prezzoDa.label" default="Prezzo Da" /></label>
							</td>
							<td valign="top"
								class="value ${hasErrors(bean: contattoOpzioniInstance, field: 'prezzoDa', 'errors')}">
								<g:textField name="prezzoDa"
									value="${fieldValue(bean: contattoOpzioniInstance, field: 'prezzoDa')}" />
							</td>
						</tr>
												<tr class="prop">
							<td valign="top" class="name"><label for="prezzoA"><g:message
										code="contattoOpzioni.prezzoA.label" default="Prezzo A" /></label></td>
							<td valign="top"
								class="value ${hasErrors(bean: contattoOpzioniInstance, field: 'prezzoA', 'errors')}">
								<g:textField name="prezzoA"
									value="${fieldValue(bean: contattoOpzioniInstance, field: 'prezzoA')}" />
							</td>
						</tr>


						<tr class="prop">
							<td valign="top" class="name"><label for="tipologia"><g:message
										code="contattoOpzioni.tipologia.label" default="Tipologia" /></label>
							</td>
							<td valign="top"
								class="value ${hasErrors(bean: contattoOpzioniInstance, field: 'tipologia', 'errors')}">
								<g:select name="tipologia.id"
									from="${com.consorzioimpresa.resuite.domain.TipologiaImmobile.list()}"
									optionKey="id"
									value="${contattoOpzioniInstance?.tipologia?.id}" />
							</td>
						</tr>

					</tbody>
				</table>
			</div>
			<div class="buttons">
				<span class="button"><g:submitButton name="create"
						class="save"
						value="Crea" /></span>
			</div>
		</g:form>
	</div>
</body>
</html>
